package distributed

type distribution interface { //分布式接口定义 类似etcd zookeeper等分布式组件
	connect() error                             //连接
	Write(title string, value string) error     //写数据
	Read(title string) string                   //读数据
	Watch(title string, w func(string, string)) //监听机制
	Close()                                     //关闭连接
}
